package com.ct.lotterysystem2.controller.param;

import com.ct.lotterysystem2.dao.dataobject.PrizeDO;
import lombok.Data;

import java.io.Serializable;

@Data
public class PageParam implements Serializable {

    private Integer currentPage;
    private Integer pageSize;

    public Integer offset () {
        return (currentPage - 1) * pageSize;
    }
}
